<template>
  <div>
   <div class="bigbox">
    <div class="white">
      <div class="self">
       <img src="http://121.199.51.160:8080/img/avatar.png" alt="">
       <p>好客—517019</p>
       <button @click="add">退出</button><br>
       <span>编辑个人资料</span>
      </div>
    </div>
   </div>
   <div class="body">
    <div class="top">
      <div class="little">
        <van-icon name="star-o" class="icon"/>
        <p>我的收藏</p>
      </div>
      <div  class="little">
        <van-icon name="wap-home-o" class="icon"/>
        <p>我的出租</p>
      </div>
      <div  class="little">
        <van-icon name="underway-o" class="icon"/>
        <p>看房记录</p>
      </div>
    </div>
    <div class="top">
      <div class="little">
        <van-icon name="tosend" class="icon"/>
        <p>成为房主</p>
      </div>
      <div  class="little">
        <van-icon name="contact" class="icon"/>
        <p>个人资料</p>
      </div>
      <div  class="little">
        <van-icon name="service-o" class="icon"/>
        <p>联系我们</p>
      </div>
    </div>
   </div>
   <div class="img"><img src="http://liufusong.top:8080/img/profile/join.png" alt=""></div>
  </div>
</template>

<script>
export default {
  name: 'MyUs',

  data () {
    return {

    }
  },

  mounted () {

  },

  methods: {
    add () {
      setTimeout(() => {
        this.$router.push('/home')
      }, 2000)
    }
  }
}
</script>

<style  scoped>
.bigbox{
  width: 100%;
  height: 260px;
  position: relative;
  background-image: url('http://121.199.51.160:8080/img/avatar.png');
  background-repeat:no-repeat;
  background-size: cover;
}
.self{
  text-align: center;
  font-size: 14px;
  margin-top: -30px;
}
.self img{
  width: 60px;
  height: 60px;

}
.self button{
  width: 60px;
  height: 30px;
  border-radius: 5px;
  background-color: palegreen;
  border: none;
}
.white{
width: 300px;
height: 150px;
background-color: white;
position: absolute;
bottom: 0;
left: 35px;
box-shadow: 0 0 10px 3px #ddd;
}
.body .top{
  font-size: 14px;
  text-align: center;
  display: flex;
  margin-top: 25px;
  color: #666;
}
.icon{
  transform: scale(1.5);
}
.body .top .little{
  margin-left: 50px;
}
.img img{
  width: 325px;
  height: 80px;
  margin: 25px;
}
</style>
